package com.zxy.ziems.server.energy.convertor;

import com.zxy.ziems.server.energy.pojo.dto.EnergyPriceTimeDTO;
import com.zxy.ziems.server.energy.pojo.entity.EnergyPriceTimeEntity;
import com.zxy.ziems.server.energy.pojo.vo.EnergyPriceTimeVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Collectors;

@Mapper(uses = EnergyPriceTimeConvertor.class)
public interface EnergyPriceTimeConvertor {

    EnergyPriceTimeConvertor INSTANT = Mappers.getMapper(EnergyPriceTimeConvertor.class);

    EnergyPriceTimeEntity dto2Entity(EnergyPriceTimeDTO energyPriceDTO);

    EnergyPriceTimeVO entity2Vo(EnergyPriceTimeEntity m);

    List<EnergyPriceTimeVO> entityList2VoList(List<EnergyPriceTimeEntity> list);
}
